package com.cnbm.wcsbasic.protocol.netty.io.common.enmuc;

public enum ModbusFC {
    //心跳变量（这个可以要求电控同事加一个，不和业务关联，只用于通讯）
    MB_HOLD_REG((byte) 0x03, (byte) 0x10),
    Q_OUT((byte) 0x01, (byte) 0x05),
    I_IN((byte) 0x02, null),
    IW_IN((byte) 0x04, null),
    ;

    private Byte fread;
    private Byte fwrite;

    ModbusFC(Byte fread, Byte fwrite){
        this.fread = fread;
        this.fwrite = fwrite;
    }

    public Byte getFread() {
        return fread;
    }

    public void setFread(Byte fread) {
        this.fread = fread;
    }

    public Byte getFwrite() {
        return fwrite;
    }

    public void setFwrite(Byte fwrite) {
        this.fwrite = fwrite;
    }
}
